package com.cn.xiaonuo.slbfinances.shopassets.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.shopassets.param.PageRefundDetailParam;
import com.cn.xiaonuo.slbfinances.shopassets.param.PageRevenueDetailsParam;
import com.cn.xiaonuo.slbfinances.shopassets.service.SlRefundDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

/**
 * @BelongsProject: slb-reports-java
 * @Author: likui
 * @CreateTime: 2022-12-23  09:25
 * @Description: 资产管理--退款明细
 */
@RestController
public class SlRefundDetailsController {
    @Autowired
    private SlRefundDetailService slRefundDetailService;

    @ApiOperation(value = "商家退款明细列表", notes = "商家退款明细列表")
    @RequestMapping(value ="/api/refundDetail/pageRefundDetail", method = RequestMethod.POST)
    public BusinessMessage pageRefundDetail(@RequestBody PageRefundDetailParam param){
        return slRefundDetailService.pageRefundDetail(param);
    }

    @ApiOperation(value = "商家退款明细列表导出", notes = "商家退款明细列表导出")
    @GetMapping(value ="/api/refundDetail/pageRefundDetailExcel")
    public void pageRefundDetailExcel(HttpServletResponse response, PageRefundDetailParam param){
         slRefundDetailService.pageRefundDetailExcel(response,param);
    }

}
